package entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Manager {
    private Long id;
    private Integer status;  //0禁用 1启用
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime createTime;  //创建时间
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private LocalDateTime updateTime;  //更新时间
    private String username;  //用户名
    private String password;  //密码
    private String avatar; //头像
    private Long roleId; //角色id
    private Integer isSuper; //是否是超级管理员
    private Long createManagerId; //创建此管理员的管库员id
    private Long lastUpdateManagerId; //最后修改此管理员的管库员id
}
